
import request from "../axios";

const user = {
  auth(url, params) {
    return request({
      url: url + "user/auth",
      method: "post",
      data: params
    })
  },
  logout(url, params) {
    return request({
      url: url + "user/logout",
      method: "post",
      data: params
    })
  },
  getUserInfo() {
    return request({
      url: "/user/info",
      mothod: "get",
      params: userId
    })
  }
}


export default user;
